package com.boardgame.gwt.service.operate.action.advance;

import java.util.regex.Matcher;

import com.boardgame.common.entity.ResponseInfo;
import com.boardgame.gwt.data.GwtGameBoard;
import com.boardgame.gwt.service.operate.SyntaxBaseAction;
import com.boardgame.gwt.service.operate.SyntaxRequest;

/**
 * 推动指定步数火车基础类
 */
public abstract class AdvanceTrainBaseAction extends SyntaxBaseAction {

    @Override
    public ResponseInfo action(GwtGameBoard gwtGameBoard, SyntaxRequest syntaxRequest, Matcher matcher) {
        super.action(gwtGameBoard, syntaxRequest, matcher);
        
        return ResponseInfo.Success(null);
    }
    
    //火车前进步数
    protected abstract int getSteps();
}
